package situ.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import situ.dao.EmpDAO;
import situ.entity.Emp;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class EmpServiceImpl implements EmpService {

	@Autowired
    EmpDAO dao;
	

	public List<Emp> queyall(){
		
		return dao.queryall();
	}

    @Override
    public List<Map> queyall2() {
        return dao.queryall2();
    }

}


